import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {OrderListComponent} from './order-list/order-list.component';
import {OrderEditComponent} from './order-edit/order-edit.component';
import {CanDeactivateGuard} from 'great-ngform';

const routes: Routes = [
  {path: 'order-list', component: OrderListComponent},
  {path: 'order-edit', component: OrderEditComponent, canDeactivate: [CanDeactivateGuard]}
];


@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OrdersRoutingModule {
}
